package com.neuedu.demo4;

public class Homework01 {
    public static void main(String[] args) {
        //创建初始数组
        int[] arr = new int[5];
        //创建变量
        int num = 1;
        //利用for循环进行赋值
        for (int i = 0; i < arr.length; i++) {
            //num变量*10为所需值
            arr[i] = num * 10;
            //变量自增
            num++;
        }
        //利用for循环进行打印
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
}
